<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <title>Title</title>
    <script src="./statics/js/jquery-3.3.1.js"></script>
    <script src="./statics/js/jquery.form.js"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            $("p").click(function () {
                alert(111)
            })

            $("#loginFrom").ajaxForm({
                url: 'http://127.0.0.1:8080/server/sendBaidu/login',
                type: 'post',
                dataType: 'json',
                beforeSubmit:function () {

                },
                success: function (data) {
                    console.log(data)
                },


            })
        })


    </script>

</head>
<body>
<form id="loginFrom">
    <table align="center">
        <tr>
            <td>姓名：</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td>出生地：</td>
            <td><input type="text" name="address"></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="提交"></td>
        </tr>
    </table>
</form>
</body>
</html>